

<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/PreInMessage/preInMessage" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="preInMessage" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label>类别：</label>
            <g:select name="partType" from="${preInMsgType}" data-toggle="selectpicker" data-live-search="true" optionKey="type" optionValue="name" value="${partType}" noSelection="['PM':'请选择汇总分类']" />&nbsp;
            <label>订单号：</label>
            <g:select name="parentId" from="${preInMsgPrendId}" data-toggle="selectpicker" data-live-search="true" optionKey="parent_id" optionValue="parent_id" value="${parentId}" noSelection="['':'ALL']" />&nbsp;
            <label>存货编码：</label>
            <g:select name="partName" from="${preInMsgSaveCodeList}" data-toggle="selectpicker" data-live-search="true" optionKey="part_name" optionValue="part_name" value="${partName}" noSelection="['':'ALL']" />&nbsp;
            <label>客户图号：</label>
            <g:select name="group4" from="${preInMsgPartPicNum}" data-toggle="selectpicker" data-live-search="true" optionKey="group4" optionValue="group4" value="${group4}" noSelection="['':'ALL']" />&nbsp;

            <label>批号：</label>
            <g:select name="lotId" from="${preInMsgLotId}" data-toggle="selectpicker" data-live-search="true" optionKey="lot_id" optionValue="lot_id" value="${lotId}" noSelection="['':'ALL']" />&nbsp;<br/>
            <label >时间：</label>&nbsp;
            <input type="text" name="startTime" value="${startTime}" data-pattern="yyyy-MM-dd"  data-toggle="datepicker" placeholder="FROM">
            <input type="text" name="endTime" value="${endTime}" data-pattern="yyyy-MM-dd" data-toggle="datepicker" placeholder="TO">&nbsp;&nbsp;

           %{-- <label>投料状态：</label>
            <g:select name="inState" from="${preInMsgState}" data-toggle="selectpicker" data-live-search="true" optionKey="reserved1" optionValue="reserved1" value="${inState}" noSelection="['':'ALL']" />&nbsp;--}%

            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/StageWip/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <div>
        <table  data-toggle="tablefixed" data-width="100%" data-nowrap="true">

            <thead>
            <tr>
                <g:each in="${tableHeadList}" status="j" var="headInstance">
                    <g:if test="${headInstance!='RN'}">
                    <th  width="125"><g:message code="${headInstance}" default="${headInstance}"/></th>
                    </g:if>
                </g:each>
            </tr>
            </thead>
            <tbody>
            <g:each in="${preInMessage}" status="i" var="dataInstance">
                <tr>
                    <g:each in="${tableHeadList}" status="j" var="headInstance">
                        <g:if test="${headInstance!='RN'}">
                            <td>${dataInstance["${headInstance}"] }</td>
                        </g:if>
                    </g:each>
                </tr>
            </g:each>
            </tbody>
        </table>
    </div>
</div>
<g:render template="../template/51pagination" />